package net.system.base.module;

public class Column {
	private String alias;
	private String name;
	private String length;
	private String type;
	private boolean isSys;
	private String defValue;
	private String value;

	public Column(String alias, String name, String length, String type, boolean isSys,
			String defValue) {
		super();
		this.alias = alias;
		this.name = name;
		this.length = length;
		this.type = type;
		this.isSys = isSys;
		this.defValue = defValue;
	}

	@Override
	public String toString() {
		// return "Column [alias=" + alias + ", name=" + name + ", length=" +
		// length + ", type="
		// + type + ", isSys=" + isSys + ", defValue=" + defValue + ", value=" +
		// value + "]";
		return String.format(
				"Column [alias=%s,name=%s,length:%s,type:%s,isSys:%b,defValue:%s,value:%s]", alias,
				name, length, type, isSys, defValue, value);
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLength() {
		return length;
	}

	public void setLength(String length) {
		this.length = length;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public boolean isSys() {
		return isSys;
	}

	public void setSys(boolean isSys) {
		this.isSys = isSys;
	}

	public String getDefValue() {
		return defValue;
	}

	public void setDefValue(String defValue) {
		this.defValue = defValue;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
